1c = library('libc', 'c.c') 2d = library('libd', 'd.c') 3executable('sub', 'sub.c', link_with: c, link_with: d) 4warning('subdir warning') 5